package com.future.service.impl;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.future.dao.PermissionMapper;
import com.future.entity.Permission;
import com.future.service.PermissionService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

@Transactional
@Service
public class PermissionServiceImpl extends ServiceImpl<PermissionMapper, Permission> implements PermissionService {

    /**
     * 根据用户ID查询权限列表
     *
     * @param userId
     * @return
     */
    @Override
    public List<Permission> findPermissionListByUserId(Long userId) {
        return baseMapper.findPermissionsListBYUserId(userId);
    }
}
